package com.ccrfid.rmc6.lbservice3.pojo.msg;

import com.vividsolutions.jts.geom.Point;

public class MsgLocate {
    private Integer cardType;
    private Long cardNumber;
    private Integer currentLocator;
    private Point currentPos;
    private Integer currentFloorNumber;
    private Integer frontLocator;
    private Point frontPos;
    private Integer frontFloorNumber;
    private Long time;

    public MsgLocate() {
    }

    public MsgLocate(Long cardNumber, Long time) {
        this.cardType = 0;
        this.cardNumber = cardNumber;
        this.currentLocator = 0;
        this.currentPos = null;
        this.currentFloorNumber = 0;
        this.frontLocator = 0;
        this.frontPos = null;
        this.frontFloorNumber = 0;
        this.time = time;
    }

    public MsgLocate(Integer cardType, Long cardNumber, Integer currentLocator,
                     Point currentPos, Integer currentFloorNumber, Long time) {
        this.cardType = cardType;
        this.cardNumber = cardNumber;
        this.currentLocator = currentLocator;
        this.currentPos = currentPos;
        this.currentFloorNumber = currentFloorNumber;
        this.frontLocator = 0;
        this.frontPos = null;
        this.frontFloorNumber = 0;
        this.time = time;
    }

    public Integer getCardType() {
        return cardType;
    }

    public void setCardType(Integer cardType) {
        this.cardType = cardType;
    }

    public Long getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(Long cardNumber) {
        this.cardNumber = cardNumber;
    }

    public Integer getCurrentLocator() {
        return currentLocator;
    }

    public void setCurrentLocator(Integer currentLocator) {
        this.currentLocator = currentLocator;
    }

    public Point getCurrentPos() {
        return currentPos;
    }

    public void setCurrentPos(Point currentPos) {
        this.currentPos = currentPos;
    }

    public Integer getCurrentFloorNumber() {
        return currentFloorNumber;
    }

    public void setCurrentFloorNumber(Integer currentFloorNumber) {
        this.currentFloorNumber = currentFloorNumber;
    }

    public Integer getFrontLocator() {
        return frontLocator;
    }

    public void setFrontLocator(Integer frontLocator) {
        this.frontLocator = frontLocator;
    }

    public Point getFrontPos() {
        return frontPos;
    }

    public void setFrontPos(Point frontPos) {
        this.frontPos = frontPos;
    }

    public Integer getFrontFloorNumber() {
        return frontFloorNumber;
    }

    public void setFrontFloorNumber(Integer frontFloorNumber) {
        this.frontFloorNumber = frontFloorNumber;
    }

    public Long getTime() {
        return time;
    }

    public void setTime(Long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "MsgLocate{" +
                "cardNumber=" + cardNumber +
                ", currentLocator=" + currentLocator +
                ", currentPos=" + currentPos +
                ", currentFloorNumber=" + currentFloorNumber +
                ", frontLocator=" + frontLocator +
                ", frontPos=" + frontPos +
                ", frontFloorNumber=" + frontFloorNumber +
                ", time=" + time +
                '}';
    }
}
